class App extends React.Component {
    state ={
        contentList:[],
        pageSum:1,
        pageNo:1,
    }
    async getWeibo(pageNo=1,pageSize=10){
        const result = await this.$axios.get("/weibo",{
            params:{
                pageNo,
                pageSize
            }
        })
        this.serState({
            contentList:result.contentList,
            pageSum:result.pageSum,
            pageNo:result.pageNo,
        })
    }
    componentDidMount(){
        this.getWeibo();
    }
    render(){
        return(
            <>
            <TakeComment getWeibo={this.getWeibo.bind(this)}/>
            <CommentOn getWeibo={this.getWeibo.bind(this)}{...this.state}/>
            </>
        )
    }
}
